<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model as EloquentModel;

/**
 * Class Model
 * @package App\Models
 * @method self recent
 * @method self increment($column, $amount = 1, array $extra = [])
 * @method self withTrashed
 * @mixin Builder
 */
class Model extends EloquentModel
{
    public function scopeRecent(Builder $query)
    {
        return $query->orderBy('created_at', 'desc');
    }
}